﻿using System;

namespace SmartLib.Common
{
	internal class TypeHost
	{
		internal TypeHost(Type type, bool singleton)
		{
			Type = type;
			Singleton = singleton;
		}

		public Type Type { get; private set; }
		public object Instance { get; internal set; }
		public bool Singleton { get; private set; }

		~TypeHost()
		{
			Type = null;
			Instance = null;
		}
	}
}